package eng.jTrussSolver.AssemblerResults;

import java.util.HashMap;

public class NodeDisplacementHashMap extends HashMap<Integer, NodeDisplacementData> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int _nodeDisplacementCounter;
	
	public NodeDisplacementHashMap() {
		_nodeDisplacementCounter = 0;
	}
	
	public void addNodeDisplacement(NodeDisplacementData NDD) {
		this.put(_nodeDisplacementCounter, NDD);
		_nodeDisplacementCounter = _nodeDisplacementCounter + 1;
	}
	
	public int getNodeDisplacementCount() {
		return this.size();
	}
	
	public void clear() {
		super.clear();
		this._nodeDisplacementCounter = 0;
	}
	
	

}
